package org.dromara.curd.dnnyun.service;

import org.dromara.curd.dnnyun.domain.vo.DnnyunConsumeOrderVo;
import org.dromara.curd.dnnyun.domain.bo.DnnyunConsumeOrderBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 东云消费订单Service接口
 *
 * @author wdm
 * @date 2024-02-29
 */
public interface IDnnyunConsumeOrderService {

    /**
     * 查询东云消费订单
     */
    DnnyunConsumeOrderVo queryById(Long orderId);

    /**
     * 查询东云消费订单列表
     */
    TableDataInfo<DnnyunConsumeOrderVo> queryPageList(DnnyunConsumeOrderBo bo, PageQuery pageQuery);

    /**
     * 查询东云消费订单列表
     */
    List<DnnyunConsumeOrderVo> queryList(DnnyunConsumeOrderBo bo);

    /**
     * 新增东云消费订单
     */
    Boolean insertByBo(DnnyunConsumeOrderBo bo);

    /**
     * 修改东云消费订单
     */
    Boolean updateByBo(DnnyunConsumeOrderBo bo);

    /**
     * 校验并批量删除东云消费订单信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 校验并批量删除东云消费订单信息
     */
    Boolean deleteByStoreId(DnnyunConsumeOrderBo dnnyunConsumeOrderBo);

    /**
     * 批量插入东云消费订单
     * @param boList
     * @return
     */
    Boolean insertBatchByBo(List<DnnyunConsumeOrderBo> boList);
}
